/*******************************************************************************
 *
 * Copyright (c) 2008-2011 ayound@gmail.com, guwei8576431@gmail.com
 * This program and the accompanying materials
 * are made available under the terms of the GNU GENERAL PUBLIC LICENSE
 * which accompanies this distribution, and is available at
 * http://dev.perl.org/licenses/gpl1.html
 * All rights reserved.
 *
 * Created on 2009-10-12
 *******************************************************************************/

package org.cgtw.scriptprofile.engine.compile;

/**
 * compile the script contents which support profile
 */
public interface IScriptCompileEngine {
	/**
	 * compile the js content
	 * @param url
	 * @param text
	 * @return the compiled content
	 */
	public String compileScript(String url, String text);
	/**
	 * get function's url,name and line by function index
	 * @param functionIndex
	 * @return
	 */
	public FunctionInfo getFunctionInfo(int functionIndex);

}
